﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Bson;
using Realms;

namespace TestRealm.Models
{
    public partial class StudentEntity : IRealmObject
    {
        public ObjectId Id { get; set; }
        public string Name { get; set; } = "";
    }

    public interface IAnimal
    {
        string Name { get; set; }
    }

    public partial class DogEntity : IRealmObject, IAnimal
    {
        public ObjectId Id { get; set; }
        public string Name { get; set; } = "";
        public int DogAge { get; set; }
    }

    public partial class CatEntity : IRealmObject, IAnimal
    {
        public ObjectId Id { get; set; }
        public string Name { get; set; } = "";
        public int CatAge { get; set; }
    }
}